﻿using BootstrapBlazor.Components;
using BootstrapBlazorApp.Shared.Data.SYS.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BootstrapBlazorApp.Shared.Data.SYS
{
    public class RoleDto : BaseDto
    {
        [Display(Name = "角色编码")]
        [Required(ErrorMessage = "角色编码是必填的")]
        [AutoGenerateColumn(IsReadonlyWhenEdit = true, Searchable = true, Filterable = true)]
        public string RoleCode { get; set; }

        [Display(Name = "角色名称")]
        [Required(ErrorMessage = "角色名称是必填的")]
        [AutoGenerateColumn(Searchable = true, Filterable = true)]
        public string RoleName { get; set; }
    }
}
